package jdk.thread.collection;

import java.util.concurrent.CopyOnWriteArrayList;

public class CopyOnWriteArrayListTest {

    public static void main(String[] args) {

        CopyOnWriteArrayList list = new CopyOnWriteArrayList();

        list.add("luobinjie");
        list.set(0, "luobinjie");
        list.get(0);
        list.remove(0);
        list.addIfAbsent("zxp");
    }
}
